package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@Slf4j
public class DemoTask {
//    @Scheduled(cron = "1 0 0 0 0 0")
    public void printLog(){
        log.info("定时任务：{}", LocalDateTime.now());
    }
}
